<template>
  <div :class="!elMenuCollapse ? 'logo' : 'mobile-logo'">
    <img :src="!elMenuCollapse ? logo : mobileLogo" alt="logo" />
  </div>
</template>
  
<script>
import logo from '../assets/icon/logo.svg'
import mobileLogo from '../assets/icon/logo.svg'

export default {
  props: {
    elMenuCollapse: {
      type: Boolean,
      required: true,
    },
  },
  data() {
    return {
      logo,
      mobileLogo
    }
  },
}
</script>
  
<style lang="scss" scoped>
.logo {
  width: 210px;
  height: 86px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  color: #fff;
  transition: all 0.5s ease-in-out;
  background-color: #122150;
  transition: all 0.3s linear;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 99;

  img {
    width: 180px;
    height: auto;
  }
}

.mobile-logo {
  width: 64px;
  height: 86px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #122150;
  transition: all 0.3s linear;

  img {
    width: 40px;
    height: 40px;
  }
}
</style>
  